home *** CD-ROM | disk | FTP | other *** search
Wrap
<html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>Slide Show Auto action</title> <meta name="generator" content="Adobe GoLive 5"> </head> <body bgcolor="white"> <center> <font size="6">SlideShowAuto Action 1.0</font> <p>© 1999, Adobe Systems Incorporated<br> All rights reserved.</p> <p>Script by Cédric Ménard</p> <hr> </center> <csactionclass name="SlideShowAuto" function="CSSlideShowAuto" nsversion="3" ieversion="4"> <csactionparam name="image" type="GLActionImageParam"></csactionparam> <csactionparam name="nombre" type="GLActionNumParam"></csactionparam> <csactionparam name="seconde" type="GLActionNumParam"></csactionparam> <csactionparam name="stop" type="GLActionBoolParam"></csactionparam> </csactionclass> <p>IE Stuff <script language="JavaScript1.2" src="../GlobalScripts/IE.scpt"></script> </p> <p>CSSlideShowAuto <script language="JavaScript1.1" cyberversion="N1.1"><!-- // Script copyright 1999, Adobe Systems Incorporated. All rights reserved. function CSSlideShowAuto(action) { SSAfini=0 SSAnumimg=0 SSAmax=action[2] SSAimgNom=action[1] SSAtemps=action[3]*1000 if (action[4]==true) { SSAstop=true } else SSAstop=false var SSAimg = null; if (document.images) { if (!IsIE()) SSAimg = CSFindElement(SSAimgNom,0); else SSAimg = document.images[SSAimgNom]; str=SSAimg.src n=str.length p=n-6 SSApstr=str.substring(0,p) SSAnimg=str.substring(p,p+2) SSAformat=str.substring(p+2,n) if (SSAformat==".jpg" || SSAformat==".JPG" || SSAformat==".gif" || SSAformat==".GIF") {} else { alert("Image extension must be .jpg or .gif (case sensitive). Images must use 2 digit naming starting with 01, 02 ... plus extension") } if (SSAnimg.substring(0,1)=="0") { SSAnumimg=Number(SSAnimg.substring(1,2)) } else {SSAnumimg=Number(SSAnimg)} SSAtempo(SSAmax,SSAimgNom,SSAtemps,SSAstop,SSApstr,SSAnimg,SSAformat) } } function SSAtempo(SSAmax,SSAimgNom,SSAtemps,SSAstop,SSApstr,SSAnimg,SSAformat) { setTimeout("slideAuto(SSAmax,SSAimgNom,SSAstop,SSApstr,SSAnimg,SSAformat)",SSAtemps) } function slideAuto(SSAmax,SSAimgNom,SSAstop,SSApstr,SSAnimg,SSAformat) { if (SSAfini==1) { SSAnumimg = SSAnumimg-2 CSSlideShowAutoPause() } else { SSAmax=SSAmax-1 SSAsuite=SSAnumimg+1 if (SSAnumimg>SSAmax) { SSAsuite=1 if (SSAstop==true) SSAfini=1 else SSAfini=0 } if (SSAnumimg<1) SSAsuite=1 SSAnumimg=SSAsuite if (SSAsuite<10) { SSAaller="0"+SSAsuite } else SSAaller=SSAsuite SSAsource=SSApstr+SSAaller+SSAformat var SSAimg = null; if (document.images) { if (!IsIE()) SSAimg = CSFindElement(SSAimgNom,0); else SSAimg = document.images[SSAimgNom]; if (SSAimg) SSAimg.src = SSAsource; } SSAtempo(SSAmax,SSAimgNom,SSAtemps,SSAstop,SSApstr,SSAnimg,SSAformat) } } function CSSlideShowAutoPause() {} // --> </script> </p> <table cool width="221" height="243" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee"> <tr height="1" cntrlrow> <td width="1" height="1"><spacer type="block" width="1" height="1"></td> <td width="4" height="1"><spacer type="block" width="4" height="1"></td> <td width="24" height="1"><spacer type="block" width="24" height="1"></td> <td width="11" height="1"><spacer type="block" width="11" height="1"></td> <td width="41" height="1"><spacer type="block" width="41" height="1"></td> <td width="60" height="1"><spacer type="block" width="60" height="1"></td> <td width="80" height="1"><spacer type="block" width="80" height="1"></td> </tr> <tr height="6"> <td width="1" height="6"><spacer type="block" width="1" height="6"></td> <td width="4" height="6"><spacer type="block" width="4" height="6"></td> <td width="24" height="6"><spacer type="block" width="24" height="6"></td> <td width="11" height="6"><spacer type="block" width="11" height="6"></td> <td width="41" height="6"><spacer type="block" width="41" height="6"></td> <td width="60" height="6"><spacer type="block" width="60" height="6"></td> <td width="80" height="6"><spacer type="block" width="80" height="6"></td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="24" height="3"><spacer type="block" width="24" height="3"></td> <td width="11" height="3"><spacer type="block" width="11" height="3"></td> <td width="41" height="3"><spacer type="block" width="41" height="3"></td> <td width="140" height="22" colspan="2" rowspan="2" valign="top" align="left" xpos="80"> <csactioncntrl name="image" x="80" y="6" width="136" height="18" alignx="scale" aligny="top"> </td> </tr> <tr height="19"> <td width="1" height="19"><spacer type="block" width="1" height="19"></td> <td width="4" height="19"><spacer type="block" width="4" height="19"></td> <td width="76" height="19" colspan="3" rowspan="1" valign="top" align="left" xpos="4"> <csactioncntrl type="InfoText" value="Base Image" x="4" y="9" width="74" height="16" alignx="left" aligny="top"> </td> </tr> <tr height="2"> <td width="1" height="2"><spacer type="block" width="1" height="2"></td> <td width="4" height="2"><spacer type="block" width="4" height="2"></td> <td width="24" height="2"><spacer type="block" width="24" height="2"></td> <td width="11" height="2"><spacer type="block" width="11" height="2"></td> <td width="41" height="2"><spacer type="block" width="41" height="2"></td> <td width="60" height="22" colspan="1" rowspan="2" valign="top" align="left" xpos="80"> <csactioncntrl name="nombre" x="80" y="28" width="52" height="17" alignx="left" aligny="top"> </td> <td width="80" height="2"><spacer type="block" width="80" height="2"></td> </tr> <tr height="20"> <td width="1" height="20"><spacer type="block" width="1" height="20"></td> <td width="4" height="20"><spacer type="block" width="4" height="20"></td> <td width="76" height="20" colspan="3" rowspan="1" valign="top" align="left" xpos="4"> <csactioncntrl type="InfoText" value="# of images" x="4" y="30" width="70" height="17" alignx="left" aligny="top"> </td> <td width="80" height="20"><spacer type="block" width="80" height="20"></td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="24" height="3"><spacer type="block" width="24" height="3"></td> <td width="11" height="3"><spacer type="block" width="11" height="3"></td> <td width="41" height="3"><spacer type="block" width="41" height="3"></td> <td width="60" height="28" colspan="1" rowspan="2" valign="top" align="left" xpos="80"> <csactioncntrl name="seconde" x="80" y="50" width="52" height="17" alignx="left" aligny="top"> </td> <td width="80" height="3"><spacer type="block" width="80" height="3"></td> </tr> <tr height="25"> <td width="1" height="25"><spacer type="block" width="1" height="25"></td> <td width="4" height="25"><spacer type="block" width="4" height="25"></td> <td width="76" height="25" colspan="3" rowspan="1" valign="top" align="left" xpos="4"> <csactioncntrl type="InfoText" value="Interval" x="4" y="53" width="71" height="18" alignx="left" aligny="top"> </td> <td width="80" height="25" colspan="1" rowspan="1" valign="top" align="left" xpos="140"> <csactioncntrl type="InfoText" value="sec." x="140" y="53" width="71" height="18" alignx="left" aligny="top"> </td> </tr> <tr height="4"> <td width="1" height="4"><spacer type="block" width="1" height="4"></td> <td width="4" height="4"><spacer type="block" width="4" height="4"></td> <td width="24" height="41" colspan="1" rowspan="3" valign="top" align="left" xpos="4"> <csactioncntrl name="stop" x="4" y="78" width="20" height="20" alignx="left" aligny="top"> </td> <td width="11" height="4"><spacer type="block" width="11" height="4"></td> <td width="41" height="4"><spacer type="block" width="41" height="4"></td> <td width="60" height="4"><spacer type="block" width="60" height="4"></td> <td width="80" height="4"><spacer type="block" width="80" height="4"></td> </tr> <tr height="15"> <td width="1" height="15"><spacer type="block" width="1" height="15"></td> <td width="4" height="15"><spacer type="block" width="4" height="15"></td> <td width="192" height="15" colspan="4" rowspan="1" valign="top" align="left" xpos="28"> <csactioncntrl type="InfoText" value="Stop at end of slideshow" x="28" y="82" width="166" height="15" alignx="left" aligny="top"> </td> </tr> <tr height="22"> <td width="1" height="22"><spacer type="block" width="1" height="22"></td> <td width="4" height="22"><spacer type="block" width="4" height="22"></td> <td width="11" height="22"><spacer type="block" width="11" height="22"></td> <td width="181" height="22" colspan="3" rowspan="1" valign="top" align="left" xpos="39"> <csactioncntrl type="InfoText" value="(loops otherwise)" x="39" y="97" width="177" height="15" alignx="left" aligny="top"> </td> </tr> <tr height="59"> <td width="1" height="59"><spacer type="block" width="1" height="59"></td> <td width="4" height="59"><spacer type="block" width="4" height="59"></td> <td width="216" height="59" colspan="5" rowspan="1" valign="top" align="left" xpos="4"> <csactioncntrl type="InfoText" value="Images must be numbered 01, 02, 03, etc, with a .gif or .jpg extension. All images in the slide show must be located in the same folder as the base image." x="4" y="119" width="212" height="53" alignx="scale" aligny="top"> </td> </tr> <tr height="64"> <td width="1" height="64"><spacer type="block" width="1" height="64"></td> <td width="4" height="64"><spacer type="block" width="4" height="64"></td> <td width="216" height="64" colspan="5" rowspan="1" valign="top" align="left" xpos="4"> <csactioncntrl type="InfoText" value="Notes: You can only apply one Slide Show Auto action per page. You cannot have both a Slide Show and Slide Show Auto action on the same page." x="4" y="178" width="212" height="53" alignx="scale" aligny="top"> </td> </tr> </table> </body> </html>